package com.onlinemusic.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.onlinemusic.pojo.domain.Song;

import java.util.List;

public interface SongMapper extends BaseMapper<Song> {
    /**
     * 查询所有歌曲id
     * @return
     */
    List<Integer> selectAllSongIds();

    /**
     * 根据歌单id查询歌单
     * @param songListId
     * @return
     */
    List<Song> selectSongListBySongListId(int songListId);

    /**
     * 查询用户的推荐列表
     * @param userId
     * @return
     */
    List<Song> selectAllRecommendSongList(Integer userId);
}
